Here we go with processing files.
Up until now, the only data that our programs have processed,
the only inputs have either come from literals that we put into
the program itself or things that the user typed during execution,
as a result of a call to the input function.
The only place where outputs have gone is the output window,
which doesn't persist after you go to another page in the textbook.
A file contains data that persists between execution of your program.
As a computer user,
you're already familiar with the concept of files,
you've probably worked with image files and spreadsheet files and word processing files.
In this lesson, you'll learn how to manipulate files in a Python program.
We'll only be working with text files,
not audio or other binary formats.
At the end of this lesson,
you should be able to write a program that reads a file's contents,
either as a single string or line by line,
you should be able to use relative paths to specify the location of a file,
you should be able to write new text to a file.
I'll see you at the end for a wrap-up and more geeky humor.